<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改售后厂家账户变动')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-afterFactoryBalance-edit" th:object="${zsyhAfterFactoryBalance}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">厂家id：</label>
                <div class="col-sm-8">
                    <input name="factoryId" th:field="*{factoryId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">金额：</label>
                <div class="col-sm-8">
                    <input name="balanceMoney" th:field="*{balanceMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分类 1保证金明细 2余额明细：</label>
                <div class="col-sm-8">
                    <input name="balanceClassify" th:field="*{balanceClassify}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分类 1厂家自己充值 2后台充值 3余额扣除 4余额解冻  5余额冻结：</label>
                <div class="col-sm-8">
                    <select name="balanceType" class="form-control m-b" th:with="type=${@dict.getType('balance_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{balanceType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商户订单号：</label>
                <div class="col-sm-8">
                    <input name="balanceOrderNum" th:field="*{balanceOrderNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">微信、支付宝订单号：</label>
                <div class="col-sm-8">
                    <input name="balancePayNum" th:field="*{balancePayNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">充值方式 1微信 2支付宝：</label>
                <div class="col-sm-8">
                    <select name="balancePayType" class="form-control m-b" th:with="type=${@dict.getType('pay_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{balancePayType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">变动后余额金额：</label>
                <div class="col-sm-8">
                    <input name="balanceMoneyAfter" th:field="*{balanceMoneyAfter}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">充值备注：</label>
                <div class="col-sm-8">
                    <textarea name="balanceRemarks" class="form-control">[[*{balanceRemarks}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单号  余额扣除  余额冻结  余额解冻时候保存：</label>
                <div class="col-sm-8">
                    <input name="orderId" th:field="*{orderId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">后台充值操作人：</label>
                <div class="col-sm-8">
                    <input name="createName" th:field="*{createName}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "zsyh/afterFactoryBalance";
        $("#form-afterFactoryBalance-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-afterFactoryBalance-edit').serialize());
            }
        }
    </script>
</body>
</html>